<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>渲染表格</title>
    
    <style>
           *{
            margin:0;
            padding:0;
           }
           table{
            width: 300px;
            table-collcase:collcase;
           }
           table,th,td{
            border:1px solid orange;
           }
    </style>
</head>
<body>
    <table>
        <tr>
            <th>姓名</th>
            <th>年龄</th>
            <th>性别</th>
            <th>地址</th>
        </tr>
    </table>
    <script>
        var data = [{
            name:'张三'，
            age:'18',
            gender:'男',
            address:'河南省郑州市'
        },{
            name:'李四',
            age:'29',
            gender:'男',
            address:'湖南省长沙市'
        },{
            name:'王五',
            age:'46',
            gender:'男',
            address:'山西省太原市'
        },{
            name:'赵楠',
            age:'22',
            gender:'女',
            address:'陕西省西安市'   
        }]
           var html
    </script>
</body>
</html>